package cn.lg.soar.general.api.enums;

import cn.lg.soar.common.annotations.DictDefine;
import cn.lg.soar.common.data.dict.IDict;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@DictDefine(name = "文件仓库状态")
public enum FileStorageStatusEnum implements IDict<Integer>, IEnum<Integer> {
    normal("正常", 0),
    disabled("禁用", 1),
    read_only("只读", 2),
    write_only("只写", 3),
    ;

    FileStorageStatusEnum(String label, Integer value){
        this.label = label;
        this.value = value;
    }

    @JsonValue
    private final Integer value;
    private final String label;
    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getLabel() {
        return this.label;
    }

}
